package com.lyw.home

import androidx.activity.viewModels
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.lu.library.base.BaseActivity
import com.lyw.home.databinding.ActivityKonwledgeDetailBinding
import dagger.hilt.android.AndroidEntryPoint

/**
 * Author: luyuanwei
 * Date: 2025/2/10
 * Description: 知识详情
 * Version:
 * Copyright(C):2024-2025
 */
@Route(path = HomeRouterPaths.HOME_KNOWLEDGE_DETAIL)
@AndroidEntryPoint
class KnowledgeDetailActivity: BaseActivity<ActivityKonwledgeDetailBinding>() {
    private val vm by viewModels<KonwledgeDetailVm>()

    @Autowired(name="assetFileName")
    @JvmField
    var assetFileName:String= ""

    override fun initData() {
        vm.initData(this,assetFileName,binding.tvContent)
    }

    override fun layoutResId(): Int {
       return R.layout.activity_konwledge_detail
    }
}